<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>创建一个对象，其它一个属性是数组</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
	
	<script type="text/javascript">
		var p = {
			id:1,
			name:'哈哈',
			home:['湘潭','长沙','广州']
		};	
		for(var i=0;i<p.home.length;i++){
			document.write(p.home[i]+"  ");
		}				
	</script>
	
  </body>
</html>



